/* Obsidian个性化首页样式 */

/* 进度条样式 */
.progress-bar {
  width: 100%;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin: 5px 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #45a049);
  border-radius: 10px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* 任务优先级颜色 */
.priority-p0 {
  border-left: 4px solid #f44336;
  background-color: rgba(244, 67, 54, 0.1);
}

.priority-p1 {
  border-left: 4px solid #ff9800;
  background-color: rgba(255, 152, 0, 0.1);
}

.priority-p2 {
  border-left: 4px solid #4caf50;
  background-color: rgba(76, 175, 80, 0.1);
}

/* 四象限样式 */
.quadrant-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 400px;
  margin: 10px 0;
}

.quadrant {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  position: relative;
  overflow-y: auto;
}

.quadrant-urgent-important {
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  border-color: #f44336;
}

.quadrant-important-not-urgent {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border-color: #ff9800;
}

.quadrant-urgent-not-important {
  background: linear-gradient(135deg, #f3e5f5, #e1bee7);
  border-color: #9c27b0;
}

.quadrant-not-urgent-not-important {
  background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
  border-color: #4caf50;
}

.quadrant-title {
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  padding: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
}

/* 日历视图样式 */
.calendar-view {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin: 10px 0;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 10px;
}

.calendar-header {
  text-align: center;
  font-weight: bold;
  padding: 10px 5px;
  background: #2196f3;
  color: white;
  border-radius: 4px;
}

.calendar-day {
  min-height: 80px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  background: white;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-day:hover {
  background: #f0f8ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day.today {
  background: #e3f2fd;
  border-color: #2196f3;
  font-weight: bold;
}

.calendar-day.has-tasks {
  background: #fff3e0;
  border-color: #ff9800;
}

.task-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  right: 5px;
}

.task-dot.high {
  background: #f44336;
}

.task-dot.medium {
  background: #ff9800;
}

.task-dot.low {
  background: #4caf50;
}

/* 统计卡片样式 */
.stats-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  padding: 20px;
  margin: 10px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
  opacity: 0.1;
}

.stats-number {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 5px;
}

.stats-label {
  font-size: 0.9em;
  opacity: 0.9;
}

/* 任务状态样式 */
.task-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
}

.status-todo {
  background: #ffecb3;
  color: #f57f17;
}

.status-doing {
  background: #bbdefb;
  color: #1976d2;
}

.status-done {
  background: #c8e6c9;
  color: #388e3c;
}

.status-blocked {
  background: #ffcdd2;
  color: #d32f2f;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .quadrant-container {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    height: auto;
  }

  .calendar-view {
    grid-template-columns: repeat(7, 1fr);
    font-size: 0.8em;
  }

  .calendar-day {
    min-height: 60px;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* 深色主题适配 */
.theme-dark .calendar-day {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

.theme-dark .calendar-day:hover {
  background: #374151;
}

.theme-dark .quadrant {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

/* 自定义滚动条 */
.quadrant::-webkit-scrollbar {
  width: 6px;
}

.quadrant::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.quadrant::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.quadrant::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}